﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace UIDemo
{
    public partial class MainForm : Form
    {
        public MainForm()
        {
            InitializeComponent();
            this.StartPosition = FormStartPosition.CenterScreen;
            this.Load += MainForm_Load;
        }

        private void MainForm_Load(object sender, EventArgs e)
        {
            var btn = new Button()
            {
                Text = "ObjectListView测试"
            };
            btn.MouseClick += Btn_MouseClick;
            this.flowLayoutPanel1.Controls.Add(btn);
            var btn2 = new Button()
            {
                Text = "DotNetUI测试"
            }; 
            btn2.MouseClick += Btn2_MouseClick;
            this.flowLayoutPanel1.Controls.Add(btn2);
        }

        private void Btn2_MouseClick(object sender, MouseEventArgs e)
        {
            new DotNetForm().ShowDialog();
        }

        private void Btn_MouseClick(object sender, MouseEventArgs e)
        {
            new ObjectListViewForm().ShowDialog();

        }
    }
}
